package main

import "fmt"

type Person21 struct {
	Name string
	Sex  byte
	Age  int
}

type Student21 struct {
	Person21
	Class string
}

type Student22 struct {
	person Person21
	Class  string
}

func main() {
	stu := Student21{}
	stu.Name = "xdc"
	stu.Age = 15
	stu.Class = "三年二班"
	fmt.Println(stu)

	stu2 := Student22{}
	stu2.person = Person21{"1", 2, 45}
	fmt.Println(stu2)
}
